home *** CD-ROM | disk | FTP | other *** search
Makefile | 1990-04-30 | 3.3 KB | 118 lines | [TEXT/MPS ] |
- # ------------------------------------------------------------------------------
- #
- # Apple Macintosh Developer Technical Support
- #
- # AppleTalk GetZoneList Sample Application
- #
- # CGetZoneList & PGetZoneList
- #
- # Makefile - Make Source
- #
- # Copyright © 1988-1990 Apple Computer, Inc.
- # All rights reserved.
- #
- # Versions: 1.0 November 1988
- # 1.1 October 1989
- # 1.2 May 1990
- #
- # Components: GetZoneList.c May 1, 1990
- # GetZoneList.p May 1, 1990
- # GetZoneList.r May 1, 1990
- # MakeFile May 1, 1990
- # UFailure.a November 1, 1988
- # UFailure.h November 1, 1988
- # UFailure.inc1.p November 1, 1988
- # UFailure.p November 1, 1988
- #
- # GetZoneList is a sample application that uses
- # AppleTalk ATP and ZIP to obtain a list of zones
- # on an AppleTalk internet.
- #
- # GetZoneList also demonstrates using a signal, or
- # failure-catching mechanism to recover from error
- # situations. Since C does not allow nested procedures
- # a la Pascal, a few modifications were made to incorporate
- # the failure handling and keep this sample fairly close in
- # design to the Pascal sample.
- # (Gee, thanks a lot M2 for using nested procs. - pvh)
- #
- # GetZoneList is based on DTS Sample.c. For more
- # description and explanation of the non-example
- # specific areas of this application, please refer to
- # either Sample.p or TESample.c.
- #
- # ------------------------------------------------------------------------------
-
- #SymOptions = -sym on # sure, why not use symbols. we've got all day.
-
- # ------------------------------------------------------------------------------
- #
- # Build Rules for CGetZoneList
- #
- # ------------------------------------------------------------------------------
-
- COptions = -r {SymOptions} # turn on strict prototyping (-r option)
-
- # Use these libraries for MPW 3.0/3.1
- CLibs = "{CLibraries}"CRuntime.o ∂
- "{CLibraries}"CInterface.o ∂
- "{Libraries}"Interface.o
-
- # Use these libraries for MPW 3.2 or later
- #CLibs = "{Libraries}"Runtime.o ∂
- # "{Libraries}"Interface.o
-
- CObjs = GetZoneList.c.o ∂
- UFailure.p.o ∂
- UFailure.a.o ∂
- {CLibs}
-
- GetZoneList.c.o ƒƒ GetZoneList.c Makefile UFailure.h
-
- CGetZoneList ƒƒ {CObjs} Makefile
- Link {SymOptions} -mf -o {Targ} {CObjs}
- SetFile {Targ} -t APPL -c '????' -a B
-
- CGetZoneList ƒƒ 'GetZoneList.r' Makefile
- Rez -rd -o {Targ} 'GetZoneList.r' -append
-
- UFailure.h ƒ
- IF NOT `Exists UFailure.h`
- Echo "CGetZoneList needs the “UFailure.h” header from SC.012.Signals."
- Exit 1
- END
-
- # ------------------------------------------------------------------------------
- #
- # Build Rules for PGetZoneList
- #
- # ------------------------------------------------------------------------------
-
- POptions = {SymOptions}
-
- PObjs = GetZoneList.p.o ∂
- UFailure.p.o ∂
- UFailure.a.o ∂
- "{Libraries}"Runtime.o ∂
- "{Libraries}"Interface.o ∂
- "{PLibraries}"PasLib.o
-
- GetZoneList.p.o ƒƒ GetZoneList.p Makefile UFailure.p
-
- PGetZoneList ƒƒ {PObjs} Makefile
- Link {SymOptions} -mf -o {Targ} {PObjs}
- SetFile {Targ} -t APPL -c '????' -a B
-
- PGetZoneList ƒƒ GetZoneList.r Makefile
- Rez -rd -o {Targ} GetZoneList.r -append
-
- # ------------------------------------------------------------------------------
- #
- # Build Rules for UFailure units
- #
- # ------------------------------------------------------------------------------
-
- UFailure.p.o ƒƒ UFailure.p UFailure.inc1.p MakeFile
-
- UFailure.a.o ƒƒ UFailure.a MakeFile
-